# -*- coding: UTF-8 -*-

import concurrent_log_handler


class JakaLogRotationHandler(concurrent_log_handler.ConcurrentRotatingFileHandler):
    """
    ConcurrentRotatingFileHandler: 进程安全的日志handler
    """

    def rotation_filename(self, rlogname):
        """
        concurrent_log_handler 默认rotation_filename存在问题，覆写使日志名符合习惯
        """
        return rlogname
